import 'package:flutter/material.dart';
import 'package:hi_flutter/im/friend/friend.dart';
import 'package:hi_flutter/im/app.dart';
import 'package:hi_flutter/im/loading.dart';
import 'package:hi_flutter/im/search.dart';

class IMAppPage extends StatelessWidget {

  const IMAppPage({super.key});

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
      title: '聊天室',
      theme: mDefaultTheme,
      routes: <String, WidgetBuilder> {
        "app": (BuildContext context)=> const ChatApp(),
        "friends": (BuildContext context)=> const FriendPage(),
        "search": (BuildContext context)=> const SearchPage(),
      },
      home: const LoadingPage(),
    );
  }

}

final ThemeData mDefaultTheme = ThemeData(
  primaryColor: Colors.green,
  scaffoldBackgroundColor: const Color(0xFFebebeb),
  cardColor: Colors.green
);